package cn.com.system.controller;

import cn.com.system.pojo.Commercialji;
import cn.com.system.service.CommercialjiService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Commercialji)表控制层
 *
 * @author makejava
 * @since 2021-04-06 20:06:42
 */
@RestController
@RequestMapping("commercialji")
public class CommercialjiController {
    /**
     * 服务对象
     */
    @Resource
    private CommercialjiService commercialjiService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Commercialji selectOne(Integer id) {
        return this.commercialjiService.queryById(id);
    }

}
